home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Mag HDD Backup
/
Amiga Mag HDD Backup.zip
/
Amiga Mag HDD Backup
/
Alexander.img.bin
/
Alexander.img
/
***9.11 All NEWer important
/
10.2
/
Finch⁄Front Ending C
/
CanDoMJC.h
< prev
next >
Wrap
Text File
|
1983-05-04
|
1KB
|
53 lines
/*------------ INCLUDE FILES ----------------*/
#include <proto/exec.h>
#include <proto/intuition.h>
#include <proto/graphics.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
/*---------- DEFINES ------------*/
#define MANDELBROT 0
#define JULIA 1
/*---------- Structure Pointer Declarations ----------*/
struct IntuitionBase *IntuitionBase;
struct GfxBase *GfxBase;
/*---------- Structure Definitions -----------*/
struct complex {
DOUBLE r;
DOUBLE i;
};
struct ComplexRange {
DOUBLE rmin, rmax;
DOUBLE imin, imax;
};
/*------------------ GENERAL FUNCTIONS -----------------*/
LONG OpenLibraries(void)
{
IntuitionBase = (struct IntuitionBase *) OpenLibrary("intuition.library",33);
if(!IntuitionBase) return FALSE;
GfxBase = (struct GfxBase *) OpenLibrary("graphics.library",33);
if(!GfxBase) return FALSE;
return TRUE;
} /* OpenLibraries */
void CloseLibraries (void)
{
if (IntuitionBase) CloseLibrary((struct Library *)IntuitionBase);
if (GfxBase) CloseLibrary((struct Library *)GfxBase);
} /* CloseLibraries () */